package com.example.yiwei.crm.dao_impl;

import com.example.yiwei.crm.dao.dockDao;
import com.example.yiwei.crm.entity.CommunicateLogEntity;
import com.example.yiwei.crm.entity.ManyiduEntity;
import com.example.yiwei.crm.entity.activityEntity;
import com.example.yiwei.crm.entity.dockingEntity;
import com.example.yiwei.crm.entity.jgsxEntity;
import com.example.yiwei.crm.entity.scheduleEntity;
import com.example.yiwei.crm.entity.teamMemberEntity;
import com.example.yiwei.crm.json.coordinationjson;
import com.example.yiwei.crm.json.dockJson;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/3/17.
 */

public class dockDaoImpl implements dockDao {

    @Override
    public List<dockingEntity> queryAllDockingMessage(String url, String para) {
        List<dockingEntity> list= dockJson.jsonDockingMessage(url, para);
        return list;
    }

    @Override
    public dockingEntity queryDtailedDockingMessage(String url, String para) {
        dockingEntity dockingEntity= dockJson.jsonDetailedDockingMessage(url, para);
        return dockingEntity;
    }

    @Override
    public List<Map<String,String>> queryDockingSpinnerMessage(String result, int l) {
        List<Map<String,String>> LIST= dockJson.jsonDockingSpinnerMessage(result, l);
        return LIST;
    }

    @Override
    public List<dockingEntity> queryManagerSpinnerMessage(String url, String para) {
        List<dockingEntity> dockingEntity= dockJson.jsonMangerMessage(url, para);
        return dockingEntity;
    }

    @Override
    public List<dockingEntity> queryDepartmentMessage(String URL, String para) {
        List<dockingEntity> dockingEntityList= dockJson.jsonDeparmentMessage(URL, para);
        return dockingEntityList;
    }

    @Override
    public List<scheduleEntity> queryVisitMessage(String url, String para) {
        List<scheduleEntity> scheduleEntity= dockJson.jsonVisitMessage(url, para);
        return scheduleEntity;
    }

    @Override
    public List<activityEntity> queryActivityMessage(String url, String para) {
        List<activityEntity> activityEntityList= dockJson.jsonActivityMessage(url, para);
        return activityEntityList;
    }

    @Override
    public List<dockingEntity> queryAllCoordinationMessage(String url, String para) {
        List<dockingEntity> list= coordinationjson.jsonCorrdiantionMessage(url, para);
        return list;

    }

    @Override
    public dockingEntity queryAllCoordinationdockMessage(String url, String para) {
        dockingEntity dockingEntity = coordinationjson.jsonCorrdiantiondockMessage(url,para);
        return dockingEntity;
    }
    @Override
    public List<CommunicateLogEntity> queryCoordingCommunicateMessage(String url, String para) {
        List<CommunicateLogEntity> list= coordinationjson.jsonCoordCommunicateMessage(url, para);
        return list;
    }

    @Override
    public List<CommunicateLogEntity> queryCoordingCommunicationMnager(String URL, String para) {
        List<CommunicateLogEntity> list= coordinationjson.jsonCommunicationManagerMessage(URL, para);
        return list;
    }
    @Override
    public List<teamMemberEntity> queryTeamMember(String url, String para) {
        List<teamMemberEntity> list=coordinationjson.jsonTeamMemberMessage(url, para);
        return list;
    }

    @Override
    public List<teamMemberEntity> queryAddTeamMemberSpinner(String url, String para) {
        List<teamMemberEntity> list=coordinationjson.jsonAddTeamMemberSpinner(url, para);
        return list;
    }

    @Override
    public List<jgsxEntity> queryJGSXMessage(String url, String para) {
        List<jgsxEntity> list=dockJson.jsonJGSXMessage(url, para);
        return list;
    }

    @Override
    public List<ManyiduEntity> queryAllSHManyiduMessage(String url, String para) {
        List<ManyiduEntity> list=dockJson.jsonJYshMessage(url, para);
        return list;
    }
}
